import 'package:library_base/entities/generated/json/base/json_field.dart';
import 'package:library_base/entities/generated/json/account_rule_entity.g.dart';

@JsonSerializable()
class AccountRuleEntity {
  late String id;
  late String ruleCode;
  late String ruleType;
  late double unitPrice;
  late String creator;
  late String createTime;
  late String ruleJoint;

  AccountRuleEntity();

  factory AccountRuleEntity.fromJson(Map<String, dynamic> json) => $AccountRuleEntityFromJson(json);

  Map<String, dynamic> toJson() => $AccountRuleEntityToJson(this);

  @override
  String toString() => ruleJoint;
}
